﻿<%@ Page Title="עידכון העסקה" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="UpdateAssignment.aspx.cs" Inherits="TempEmployees.Web.WebForm4" %>

<%@ Register Src="~/UserControls/AssignmentDetails.ascx" TagName="AssignmentDetails"
    TagPrefix="uc1" %>
<%@ Register Src="UserControls/EmployeeDetails.ascx" TagName="EmployeeDetails" TagPrefix="uc2" %>
<%@ Register Src="~/UserControls/GridViews/GridViewDepartmentStatus.ascx" TagName="DepartmentStatus"
    TagPrefix="uc3" %>
<%@ Register Src="~/UserControls/GridViews/GridViewAssignmentStatus.ascx" TagName="AssignmentStatus"
    TagPrefix="uc4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="direction: rtl">
        <asp:LinkButton ID="LinkButtonBack" runat="server" OnClick="LinkButtonBack_Click">חזרה</asp:LinkButton>
        <fieldset>
            <legend class="legend">פרטי העסקה </legend>
            <asp:UpdatePanel ID="UpdatePanelAssignmentDetails" runat="server">
                <ContentTemplate>
                    <uc1:AssignmentDetails ID="AssignmentDetails1" runat="server" />
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="ButtonUpdateAssignment" />
                    <asp:AsyncPostBackTrigger ControlID="ButtonAccept" />
                </Triggers>
            </asp:UpdatePanel>
            <asp:UpdatePanel ID="UpdatePanelButtons" runat="server">
                <ContentTemplate>
                    <asp:Button ID="ButtonUpdateAssignment" runat="server" Text="אפשר עריכה" OnClick="ButtonUpdateAssignment_Click"
                        Visible="False" />
                    <asp:Button ID="ButtonExtend" runat="server" OnClick="ButtonExtend_Click" Text="הארכת העסקה"
                        Visible="false" />
                    <asp:Button ID="ButtonActivate" runat="server" OnClick="ButtonActivate_Click" Text="הפקת טופס"
                        Visible="False" />
                    <asp:Button ID="ButtonAccept" runat="server" OnClick="ButtonAccept_Click" Text="אישור העסקה"
                        Visible="False" />
                    <asp:Button ID="ButtonReject" runat="server" OnClick="ButtonReject_Click" Text="דחיית העסקה"
                        Visible="False" />
                    <asp:Button ID="ButtonTerminate" runat="server" OnClick="ButtonTerminate_Click" Text="ביטול העסקה"
                        Visible="False" />
                </ContentTemplate>
            </asp:UpdatePanel>
        </fieldset>
        <fieldset>
            <legend class="legend">תקציבים </legend>
            <p>
                <uc3:DepartmentStatus ID="DepartmentStatusGridView" runat="server" />
            </p>
            <p>
                <uc4:AssignmentStatus ID="AssignmentStatusGridView" runat="server" />
            </p>
        </fieldset>
        <fieldset>
            <legend class="legend">פרטי העובד </legend>
            <p>
                <uc2:EmployeeDetails ID="EmployeeDetails1" runat="server" />
                <br />
                <asp:Button ID="ButtonEmployeeDetails" runat="server" Text="לדף פרטי עובד" OnClick="ButtonEmployeeDetails_Click" />
            </p>
        </fieldset>
    </div>
</asp:Content>
